import Vue from 'vue';
import Router from 'vue-router';
import Login from '../pages/Login/LoginPage.vue';
import Index from '../pages/Index/PageIndex.vue';
import subSystems from '../pages/SubSystems/SystemIndex.vue';
import resourceManage from '../pages/ResourceManage/ResourceIndex.vue';
import roleManage from '../pages/RoleManage/RoleIndex.vue';
import userManage from '../pages/UserManage/UserIndex.vue';

Vue.use(Router);

export default new Router({
    routes:[
        {
            path:'/',
            name: 'Index',
            component:Index
        },
        {
            path:'/login',
            name: 'Login',
            component:Login
        },
        {
            path:'/subSystems',
            name:'sybSystems',
            component:subSystems
        },
        {
            path:'/resourceManage',
            name:'resourceManage',
            component:resourceManage
        },
        {
            path:'/roleManage',
            name:'roleManage',
            component:roleManage
        },
        {
            path:'/userManage',
            name:'userManage',
            component:userManage
        }
    ]
})